import React from 'react';
import { Button, Result } from 'antd';
import {history} from "@umijs/max";

const Success: React.FC = () => (
    <Result
        status="success"
        title="成功申请接口！"
        subTitle="请等待管理员审核(●'◡'●)"
        style={{marginTop:100}}
        extra={[
            <Button type="primary" key="console" onClick={()=>{
                history.push("/")
            }}>
                返回首页
            </Button>,
            <Button key="buy" onClick={()=>{
                history.push("/account/center")
            }}>返回个人中心</Button>,
        ]}
    />
);

export default Success;
